using System;


namespace Slf.Samples.ConsoleLogging
{
  class Program
  {
    static void Main(string[] args)
    {
      //set up ConsoleLogger
      ILogger logger = new ConsoleLogger();
      LoggerService.SetLogger(logger);
      
      //do some work
      DoSomeWork();
      Console.ReadLine();
    }



    private static void DoSomeWork()
    {
      //get the logger via LoggerService
      ILogger logger = LoggerService.GetLogger();

      //log info
      logger.Warn("This is a warning.");
    }
  }
}